package group2assignone.func;

import group2assignone.ucm.UCController;
import java.awt.event.*;

/**
 * Adapter class to use a Use Case Controller as an Action Listener
 * @author group2
 */
public class UCCtoALAdapter implements ActionListener {

    private UCController ucc;

    /**
     * starts the use case when an action is performed
     * @param arg0
     */
    public void actionPerformed(ActionEvent arg0) {
        ucc.run();
    }

    /**
     * sets the use case variable
     * @param ucc
     */
    public UCCtoALAdapter(UCController ucc) {
        this.ucc = ucc;
    }
}

